Skip to content

Make checkers agnostic of validator attributes types#216

Open
fatkodima wants to merge 1 commit into
gregnavis:masterfrom
fatkodima:validators-type-agnostic-attributes
Open

Make checkers agnostic of validator attributes types#216
fatkodima wants to merge 1 commit into
gregnavis:masterfrom
fatkodima:validators-type-agnostic-attributes

Conversation

@fatkodima

Copy link
Copy Markdown
Contributor

Rails validators do not convert passed attributes to either string or symbols. But some checkers assume that attributes are always of symbol type.

This is problematic for example for cases when the attribute is some interpolated string and not converted to a symbol, which I just encountered in my project.

@fatkodima

Copy link
Copy Markdown
Contributor Author

Found a bug in the implementation, need to update the PR before merging.

@gregnavis gregnavis added the enhancement An enhancement other than a new detector. label Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An enhancement other than a new detector.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants